








set name=*

if not exist %name%.cpp (
    echo Unable to find %name%.cpp > compilation.log
    exit 1
)

del /F /Q %name%.exe

for %%i in (*.exe) do (
	del /F /Q %%i.exe
)

for %%i in (*.cpp) do (
	g++.exe -DDEBUG -static -Wl,--stack=268435456 -O2 -o %%i.exe %%i -lws2_32 -lwsock32 2>compilation.log
)